<!-- toaster directive -->
<toaster-container toaster-options="{'position-class': 'toast-top-right', 'close-button':true}"></toaster-container>
<!-- / toaster directive -->

<!-- 导航条 -->
<div class="bg-white bread-crumb">
    <ul class="breadcrumb b-a m-b-n-xs lter b-b wrapper-md">
        <li><a ui-sref="main.tpl.homePage"><i class="fa fa-home"></i> 首页</a></li>
        <li><a ui-sref="main.finance.extractApply.list">应付账款</a></li>
        <li class="active" ng-bind="title"></li>
    </ul>
</div>

<!-- 内容区域 -->
<div class="wrapper-md content">
    <div class="panel panel-default">
        <!-- 头部 -->
        <div class="panel-heading font-bold">{{title}}
            <a class="btn btn-sm btn-icon btn-rounded btn-default pull-right m-t-n-xs" ui-sref="main.finance.extractApply.list"><i class="text-md fa fa-times text-muted"></i></a>
        </div>
        <!--表单-->
        <div class="panel-body">
            <form class="form-horizontal"  name="extract_form" id="form">
                <!--流量主名称-->
                <div class="form-group">
                    <label class="col-lg-2 col-sm-3 control-label" for="applyUserId">
                        <span class="text-danger wrapper-sm">*</span>流量主</label>
                    <div class="col-sm-6">
                        <!--<input type="text" class="form-control" name="supplyName" id="supplyName" placeholder="请输入流量主名称..." ng-model="record.supplyName" required>-->
                        <select class="form-control" name="applyUserId" ng-model="record.applyUserId" ng-options="supply.userIdS as supply.companyName for supply in supplyList" id="applyUserId">
                        </select>
                    </div>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>
                <!--付款金额-->
                <div class="form-group">
                    <label class="col-lg-2 col-sm-3 control-label" for="extractAmount">
                        <span class="text-danger wrapper-sm">*</span>付款金额</label>
                    <div class="col-sm-6">
                        <!--   <select class="form-control" ng-model="record.parentId"
                                   ng-options="dp.id as dp.deptName for dp in parentList" id="parentId">
                           </select>-->
                        <input type="text" class="form-control" name="extractAmount" id="extractAmount" placeholder="请输入付款金额..." ng-model="record.extractAmount" onkeyup="if(!/^[0-9\.]+$/.test(this.value)) { this.value='';}" required>
                    </div>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>
                <!--流量主收款类型-->
                <div class="form-group">
                    <label class="col-lg-2 col-sm-3 control-label" for="receAcctType">
                        <span class="text-danger wrapper-sm">*</span>收款类型</label>
                    <div class="col-sm-6">
                        <select class="form-control"  ng-model="record.receAcctType"  id="receAcctType" name="receAcctType" >
                            <option value="3">银行卡</option>
                           <!-- <option value="01">存折</option>
                            <option value="02">信用卡</option>-->
                          <!--  <option value="03">支付宝</option>-->
                        </select>
                    </div>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>
                <!--收款账户账户-->
                <div ng-show="record.receAcctType=='03'">
                <div class="form-group">
                    <label class="col-lg-2 col-sm-3 control-label" for="bankCardNo">
                        <span class="text-danger wrapper-sm">*</span>收款账户</label>
                    <div class="col-sm-6">
                        <input type="text" class="form-control" name="bankCardNo" id="bankCardNo" placeholder="请输入收款账户..." ng-model="record.bankCardNo" onkeyup="if(!/^\d+$/.test(this.value)) { this.value='';}">
                    </div>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>
                <!-- 行别-->
              <!--  <div class="form-group">
                    <label class="col-lg-2 col-sm-3 control-label" for="bankName">
                        <span class="text-danger wrapper-sm">*</span>行别</label>
                    <div class="col-sm-6">
                        <input type="text" class="form-control" name="bankName" id="bankName" placeholder="请输入行别..." ng-model="record.bankName">
                    </div>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>-->
                <!-- 开户行-->
                <div class="form-group">
                    <label class="col-lg-2 col-sm-3 control-label" for="bankCardName">
                        <span class="text-danger wrapper-sm">*</span>开户行</label>
                    <div class="col-sm-6">
                      <!--  <input type="text" class="form-control" name="bankCardName" id="bankCardName" placeholder="请输入开户行..." ng-model="record.bankCardName">-->
                        <select class="form-control" name="bankCardName" ng-model="record.bankCardName" ng-options="supply.bankCode as bank.bankName for supply in bankList" id="bankCardName">
                        </select>

                    </div>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>
                </div>
                <div ng-show="record.receAcctType=='01'">
                    <!--支付宝账号-->
                    <div class="form-group">
                        <label class="col-lg-2 col-sm-3 control-label" for="alipay">
                            <span class="text-danger wrapper-sm">*</span>支付宝账号</label>
                        <div class="col-sm-6">
                            <input type="text" class="form-control" name="alipay" id="alipay" placeholder="请输入支付宝账号..." ng-model="record.alipay">
                        </div>
                    </div>
                    <div class="line line-dashed b-b line-lg pull-in"></div>
                    <!--支付宝用户名-->
                    <div class="form-group">
                        <label class="col-lg-2 col-sm-3 control-label" for="alipayName">
                            <span class="text-danger wrapper-sm">*</span>支付宝用户名</label>
                        <div class="col-sm-6">
                            <input type="text" class="form-control" name="alipayName" id="alipayName" placeholder="请输入支付宝用户名..." ng-model="record.alipayName">
                        </div>
                    </div>
                    <div class="line line-dashed b-b line-lg pull-in"></div>
                </div>

                <div class="form-group">
                    <label class="col-lg-2 col-sm-3 control-label" for="supplyInfo">
                        <span class="text-danger wrapper-sm">*</span> 汇款单位/个人</label>
                    <div class="col-sm-6">
                        <input type="text" class="form-control"  placeholder="请输入汇款单位/个人" ng-model="record.supplyInfo" id="supplyInfo" name="supplyInfo">
                    </div>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>
                <!-- 计划打款日期-->
                <div class="form-group">
                    <label class="col-lg-2 col-sm-3 control-label" for="planApplyDate">
                        <span class="text-danger wrapper-sm">*</span> 计划打款日期</label>
                    <div class="col-sm-6">
                      <input type="text" class="form-control" name="planApplyDate" id="planApplyDate" placeholder="请输入计划打款日期..."  onclick="laydate({istime: true, format: 'YYYY/MM/DD', start: laydate.now(0, 'YYYY/MM/DD')})">
                    </div>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>
                <div class="form-group">
                    <div class="col-sm-6 col-sm-offset-2" >
                        <button type="button" class="btn btn-info w-xs m-l-xl" ng-disabled="isDisabled" ng-click="osubmit(1)">继续添加</button>
                        <button type="button" class="btn btn-info w-xs m-l-xl" ng-disabled="isDisabled" ng-click="osubmit(2)">保存</button>
                     <!--   <a ui-sref="main.finance.extractApply.list">
                            <button class="btn btn-default w-xs m-l-xl">返回</button>
                        </a>-->
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
